/**
 * Created by radoslaw.panczyk on 2014-12-14.
 */
var mongoose = require('mongoose');

var QuestionSchema = new mongoose.Schema({
    content: String,
    answers: [{type: mongoose.Schema.Types.ObjectId, ref: 'Answer'}],
    quiz: {type: mongoose.Schema.Types.ObjectId, ref: 'Quiz'}
});

mongoose.model('Question', QuestionSchema);